< previous page page_248 next page >

Page 248
Tip.gif
If you want to save the structure to a file, you can use the printer applet in the Control Panel to define a printer as a file, and then set that print device as the default printer before you click the Print Structure button in Visdata. Be sure to reset your default printer after you send your table structures to a disk file.

The Visdata Utility Menu
The Visdata Utility menu contains several options to help you manage your data tables. You can create, test, and save query objects using the Query Builder; build data entry forms with the Data Form Designer; perform global replace routines on existing data tables; define attachments; define security; and define system preferences.
Query Builder . . .
The Query Builder serves as a good tool for testing queries and then saving them to the database as query objects. You can later access these objects from your Visual Basic 5 programs. The Query Builder enables you to perform complex queries without having to know all the details of SQL syntax.
Note.gif
We cover SQL SELECT queries in detail on Day 8, "Selecting Data with SQL." For now, if you are not familiar with SQL statements, just follow along with the example. The important thing to remember is that you can use the Visdata Query Builder to create, test, and store SQL queries.

Let's build a query, test it, and save it in a database. First, make sure you have BOOKS5.MDB open (found in the TYSDBVB5\SOURCE\DATA directory on the CD included with this book), and then select Utility | Query Builder . . . from the main menu. You see a data entry form ready for your input (see Figure 7.32).
You have several options on this screen. It's easy to get confused if you are not quite sure of what to look for. Instead of going through all the possible options for a query, this example goes step-by-step through a rather simple SELECT query and its results. Table 7.1 shows the values to select and Figure 7.33 shows the completed form. Refer to these items as you build your query.

 
< previous page page_248 next page >

If you like this book, buy it!